projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d10b28
)
gtksecurememory.c: Don't include unistd.h unconditionally
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Wed, 9 Sep 2020 01:39:58 +0000
(09:39 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Wed, 9 Sep 2020 05:48:33 +0000
(13:48 +0800)
It is not universally available on non-POSIX systems.
gtk/gtksecurememory.c
patch
|
blob
|
history
diff --git
a/gtk/gtksecurememory.c
b/gtk/gtksecurememory.c
index 55db84398b12b1a0286bf06a5248a9586bee287a..5e3978ec282a6baa46e52fcbafc7349022b5ed61 100644
(file)
--- a/
gtk/gtksecurememory.c
+++ b/
gtk/gtksecurememory.c
@@
-44,7
+44,11
@@
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+
#include <assert.h>
#ifdef WITH_VALGRIND